package com.css.fxfzysx.modules.vaolEngineering.repository;

import com.css.fxfzysx.modules.lifeline.entity.newEntity.SmxBridgeEntity;
import com.css.fxfzysx.modules.lifeline.vo.basic.DestructiveStateVo;
import com.css.fxfzysx.modules.vaolEngineering.entity.CbVulnerabilityEntity;
import com.css.fxfzysx.modules.vaolEngineering.param.update.BridgeParam;

import java.util.List;

public interface CbVulnerabilityRepository {

    void updateVulnerability(CbVulnerabilityEntity cbVulnerabilityEntity);

    boolean deleteVulnerability(String id);

    CbVulnerabilityEntity getVulnerabilityById(String id);

    boolean saveBridgePoint(SmxBridgeEntity it);

    boolean saveBridgeLine(SmxBridgeEntity it);

    List<SmxBridgeEntity> getByVersionId(String versionId);

    void saveBridgeResult(SmxBridgeEntity entity,Integer bridgeType);

    SmxBridgeEntity getByTableId(String id, Integer bridgeType);

    void updateBridgeById(BridgeParam bridgeParam, Integer bridgeType);

    DestructiveStateVo getByBasicInfo(SmxBridgeEntity entity,String year);
}
